package com.shopping.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shopping.po.Address;

public interface AddressDao {
	public List<Address> selectAddressById(Integer user_id);
	public void insertAddress(@Param("adr")String adr,@Param("detail")String detail,
			@Param("name")String name,
			@Param("phone")String phone,
			@Param("mail")String mail,
			@Param("user_id")Integer user_id);
	public void deleteAddress(Integer address_id);
	public Address selectAddressByAId(Integer address_id);
	public void updateAddressByAId(@Param("adr")String adr,@Param("detail")String detail,
			@Param("name")String name,
			@Param("phone")String phone,
			@Param("mail")String mail,
			@Param("address_id")Integer address_id);
}
